﻿
using Mono.Cecil;

public class LuaArgDefinition : LuaParameterReference
{
    private readonly LuaMethodReference _owned;
    public LuaArgDefinition(LuaModuleDefinition module, LuaMethodReference owned, ParameterDefinition self)
        : base(module, self)
    {
        _owned = owned;
        IsReturn = self.IsOut || self.IsReturnValue;
        StackType = self.ParameterType.ToStackType();
    }

    public bool IsReturn { get;}
    public override ObjectKind StackType { get; }

    public override LuaArgDefinition Resolve()
    {
        return this;
    }
}

